]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Add a desktop file for gnome-shell
authorOwen W. Taylor <otaylor@fishsoup.net>
Fri, 7 Aug 2009 17:10:39 +0000 (13:10 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Fri, 7 Aug 2009 18:13:24 +0000 (14:13 -0400)
Add a desktop file for GNOME Shell. This allows making GNOME Shell
your desktop default by adding it to your auto-start items.

http://bugzilla.gnome.org/show_bug.cgi?id=591089

configure.ac
data/Makefile.am
data/gnome-shell.desktop.in.in [new file with mode: 0644]

index 9aff80a4a1efbac0fc9edf6e152c644536113ba6..ab3b7a3a81fc9ca47d00627a0962c9a3958101f4 100644 (file)
@@ -1,4 +1,4 @@
-AC_INIT(gnome-shell, 0.1)
+AC_INIT(gnome-shell, 2.27.0)
 
 AC_CONFIG_AUX_DIR(config)
 
index aae022d46ea77ebce46f569ac9bc40c9f26353e9..fa0db4f79a6782f61e9b48585b8f688fbbc807e8 100644 (file)
@@ -1,3 +1,17 @@
+desktopdir=$(datadir)/applications
+desktop_DATA = gnome-shell.desktop
+
+# We substitute in bindir so it works as an autostart
+# file when built in a non-system prefix
+gnome-shell.desktop.in: gnome-shell.desktop.in.in
+       $(AM_V_GEN) sed -e "s|@bindir[@]|$(bindir)|" \
+           -e "s|@VERSION[@]|$(VERSION)|" \
+           $< > $@ || rm $@
+
+# Placeholder until we add intltool
+gnome-shell.desktop: gnome-shell.desktop.in
+       $(AM_V_GEN) sed s/^_// < $< > $@ || rm $@
+
 imagedir = $(pkgdatadir)/images
 
 dist_image_DATA =              \
@@ -14,5 +28,11 @@ schema_DATA = gnome-shell.schemas
 install-data-local:
        GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA)
 
-EXTRA_DIST =                   \
+EXTRA_DIST =                                   \
+       gnome-shell.desktop.in.in               \
+       gnome-shell.desktop.in                  \
        $(schema_DATA)
+
+CLEANFILES =                                   \
+       $(desktop_DATA)
+
diff --git a/data/gnome-shell.desktop.in.in b/data/gnome-shell.desktop.in.in
new file mode 100644 (file)
index 0000000..a6765ba
--- /dev/null
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Type=Application
+_Name=GNOME Shell
+_Comment=Window management and application launching
+Exec=@bindir@/gnome-shell
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=gnome-shell
+X-GNOME-Bugzilla-Component=general
+X-GNOME-Bugzilla-Version=@VERSION@
+Categories=GNOME;GTK;Utility;Core;
+OnlyShowIn=GNOME;
+NoDisplay=true
+X-GNOME-Autostart-Phase=WindowManager
+X-GNOME-Provides=panel;windowmanager;
+X-GNOME-Autostart-Notify=true